package top.ajun.common.constants;

/**
 * 商品系统相关常量
 * 
 * @author AJun
 * @date 2020/12/07
 */
public interface ProductConstant {

    /**
     * 基本属性
     */
    AttrEnum ATTR_TYPE_BASE = AttrEnum.ATTR_TYPE_BASE;

    /**
     * 销售属性
     */
    AttrEnum ATTR_TYPE_SALE = AttrEnum.ATTR_TYPE_SALE;

    enum AttrEnum {
        ATTR_TYPE_BASE(1, "基本属性"), 
        ATTR_TYPE_SALE(0, "销售属性");

        private final int code;
        private final String msg;

        AttrEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

}
